package com.ruoyi.project.lely.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;


/**
 * 订单
 *
 * @author luoyong
 */
@Data
@ApiModel("订单 出参VO")
public class LyOrderVO {

    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("用户表的用户ID")
    private Integer userId;

    @ApiModelProperty("订单编号")
    private String orderSn;

    @ApiModelProperty("订单状态")
    private Integer orderStatus;

    @ApiModelProperty("收货人名称")
    private String consignee;

    @ApiModelProperty("收货人手机号")
    private String mobile;

    @ApiModelProperty("收货具体地址")
    private String address;

    @ApiModelProperty("用户订单留言")
    private String message;

    @ApiModelProperty("商品总费用")
    private BigDecimal goodsPrice;

    @ApiModelProperty("配送费用")
    private BigDecimal freightPrice;

    @ApiModelProperty("优惠券减免")
    private BigDecimal couponPrice;

    @ApiModelProperty("用户积分减免")
    private BigDecimal integralPrice;

    @ApiModelProperty("团购优惠价减免")
    private BigDecimal grouponPrice;

    @ApiModelProperty("订单费用， = goods_price + freight_price - coupon_price")
    private BigDecimal orderPrice;

    @ApiModelProperty("实付费用， = order_price - integral_price")
    private BigDecimal actualPrice;

    @ApiModelProperty("微信付款编号")
    private String payId;

    @ApiModelProperty("微信付款时间")
    private LocalDateTime payTime;

    @ApiModelProperty("发货编号")
    private String shipSn;

    @ApiModelProperty("发货快递公司")
    private String shipChannel;

    @ApiModelProperty("发货开始时间")
    private LocalDateTime shipTime;

    @ApiModelProperty("用户确认收货时间")
    private LocalDateTime confirmTime;

    @ApiModelProperty("待评价订单商品数量")
    private Integer comments;

    @ApiModelProperty("订单关闭时间")
    private LocalDateTime endTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除")
    private Integer deleted;

    @ApiModelProperty("代理结算金额")
    private BigDecimal settlementMoney;

    @ApiModelProperty("结算状态")
    private Integer settlementStatus;

    @ApiModelProperty("配送方式 ：0 快递, 1 自提")
    private Integer freightType;

    @ApiModelProperty("推广用户")
    private Integer fraction;

    @ApiModelProperty("提货码")
    private String fetchCode;

    @ApiModelProperty("原始创建人")
    private Integer createUserId;

    @ApiModelProperty("转赠发送时间")
    private LocalDateTime giftSendTime;

    @ApiModelProperty("转赠接收时间")
    private LocalDateTime giftReceiveTime;

    @ApiModelProperty("商品列表详情")
    private List<LyOrderGoodsVO> goodsList;

}
